package com.xr.miniprogram.controller.index;

import com.xr.common.core.controller.BaseController;
import com.xr.common.core.domain.AjaxResult;
import com.xr.miniprogram.domain.MiniProgramService;
import com.xr.miniprogram.domain.vo.MiniProgramServiceVO;
import com.xr.miniprogram.service.IMiniProgramServiceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author da
 * @since 2023-09-14
 */
@Api("小程序精品推荐")
@RestController
@RequestMapping("/miniprogram/recommendation")
public class MiniProgramRecommendationController extends BaseController {
    @Resource
    private IMiniProgramServiceService miniProgramServiceService;

    @ApiOperation("获取精品推荐列表")
    @RequestMapping("/get")
    public AjaxResult getRecommendation(){
        return success(miniProgramServiceService.getRecommendation());
    }

}
